/******************************************************************************
 * @File         : rtc.h
 *
 * @Version      : V2.0
 * @Revision     : none
 * @Created date : 2017/1/18 18:32:33
 * @Last modified: 2017/01/18 18:33:02
 * @Modified by  : Chen Bo
 *
 * @Brief        : rtc driver header file
 *
 * Copyright (C) 2017~2016 Skyrelay Technology Corp. All rights reserved.
 *****************************************************************************/

#ifndef __RC2412_RTC_H__
#define __RC2412_RTC_H__

#ifdef __cplusplus
extern "C"
{
#endif
#include <stdint.h>
#include "../../periph_def/rc2412_rtc_def.h"

void rtc_Enable(void);
void rtc_Disable(void);
void rtc_Get_Current_Value(uint8_t *pval);
void rtc_Reset(void);
void rtc_Wakeup_ms(uint32_t u32Msec, uint8_t u8Mode);
void rtc_Wakeup_sec(uint32_t u32sec, uint8_t u8Mode);

#ifdef __cplusplus
}
#endif

#endif //__RTC_H__

/*** (C) COPYRIGHT 2018 Skyrelay Technology Corp. ***/
